package pzl.com.canvasapi.views;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.View;

/**
 * @author zl.peng
 * @version [1.0, 2016-11-23]
 *          Canvas.VertexMode :
 *          TRIANGLES:每隔三个顶点构成一个三角形，为多个三角形组成
 *          TRIANGLE_STRIP:每相邻三个顶点组成一个三角形，为一系列相接三角形构成
 *          TRIANGLE_FAN:以一个点为三角形公共顶点，组成一系列相邻的三角形
 */
public class V_Vertices extends View {
    private Paint mPaint;

    public V_Vertices(Context context) {
        super(context);
    }

    public V_Vertices(Context context, AttributeSet attrs) {
        super(context, attrs);
        mPaint = new Paint();
        mPaint.setAntiAlias(true);
        mPaint.setStyle(Paint.Style.STROKE);
    }

    public V_Vertices(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    protected void onDraw(Canvas canvas) {
    }

}
